package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.State.Model;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.State.Model.EmotionalState;

public class Person implements EmotionalState
{
    private EmotionalState emotionalState;

    public Person(EmotionalState emotionalState) { this.emotionalState = emotionalState; }

    public void setEmotionalState(EmotionalState emotionalState) { this.emotionalState = emotionalState; }

    @Override
    public String sayHello() { return emotionalState.sayHello(); }

    @Override
    public String sayGoodBye() { return emotionalState.sayGoodBye(); }
}